package com.jiangnan.controller;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

@RestController
public class DeviceController {

    @PostMapping(value = "crane/heartbeat/{deviceID}", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public void crawlerInformation(@PathVariable String deviceID, @RequestBody String dto){
        System.out.println(deviceID);
        System.out.println(dto);
    }

}
